#! /bin/sh

go build
if [ $? != 0 ]; then
  echo 'Build Golang Source Error!'
  exit 0
fi
mv video-share docker/app

cd docker
docker build -t hclink.8800.org:5000/avapp .
if [ $? != 0 ]; then
  echo 'Build Docker Image Error!'
  exit 0
fi

docker push hclink.8800.org:5000/avapp